package com.hqyj.shop.dao;

import com.hqyj.shop.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderDao {
    //新建订单
    boolean creatOrder(Order order);
    //查询订单
    List<Order> queryOrder(Integer userId);

    //取消订单
    boolean deleteOrder(Integer orderId);

    //修改订单状态
    boolean updateOrderStatus(@Param("orderId") Integer orderId,@Param("status") String status);
}
